var found=false;
var above=false;
with(oSolid){
    if(!found){
    //check horizontal overlap
        if(other.x<x+sprite_width && other.x+other.sprite_width>x){
            found=true;
            if(other.y>=y)
                above=false;
            else
                above=true;
        }   
    }
}
if(above)
    aboveGround=true;
else
    aboveGround=false;
